﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Usuario.Master" Inherits="System.Web.Mvc.ViewPage<AdminCondominio.Dominio.Residente>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Editar</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Datos</legend>
            
            <div class="editor-label">
               Codigo
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.CoResidente,new Dictionary<string, object>(){{"readonly", "true"}}) %>
                <%: Html.ValidationMessageFor(model => model.CoResidente) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.NuDocumento) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.NuDocumento) %>
                <%: Html.ValidationMessageFor(model => model.NuDocumento) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.NoResidente) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.NoResidente) %>
                <%: Html.ValidationMessageFor(model => model.NoResidente) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.FeNacimiento) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FeNacimiento, String.Format("{0:g}", Model.FeNacimiento)) %>
                <%: Html.ValidationMessageFor(model => model.FeNacimiento) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.NoCorreo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.NoCorreo, new Dictionary<string, object>() { { "readonly", "true" } })%>
                <%: Html.ValidationMessageFor(model => model.NoCorreo) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.TxClave) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.TxClave) %>
                <%: Html.ValidationMessageFor(model => model.TxClave) %>
            </div>
            
            <p>
                <input type="submit" value="Guardar" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a la lista", "Index") %>
    </div>

</asp:Content>

